package com.dup.jxlh.admin.controller;

import com.dup.jxlh.admin.service.AliYunOssService;
import com.dup.jxlh.api.entities.CommonResult;
import com.dup.jxlh.api.enums.ResultEnum;
import com.dup.jxlh.api.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ali")
@Validated
public class AliYunController {
    @Autowired
    private AliYunOssService aliYunOssService;

    @PostMapping("/getAliYunOssStsToken")
    public CommonResult getAliYunOssStsToken() {
        return ResultUtil.result(ResultEnum.SUCCESS, aliYunOssService.getAliYunOssStsToken());
    }


}
